package com.huawei.hianalytics.f.f;

import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.huawei.hianalytics.f.g.h;
import com.huawei.hianalytics.f.g.j;
import com.huawei.hianalytics.g.b;
import com.huawei.hianalytics.util.d;
import java.util.Map;

public class e extends d {
    private String c;

    public e(Context context, String str, int i, String str2, String str3, long j, Map<String, String> map, Map<String, String> map2) {
        super(context, str, i, str2, str3, j);
        this.c = j.a(map, map2);
        if (TextUtils.isEmpty(this.c)) {
            b.b("EventRecordTaskEx", "common and header Ex is empty");
        } else {
            this.b = d.a(this.c);
        }
    }

    public void run() {
        b.b("EventRecordTaskEx", "EventRecordTaskEx task is running");
        if (!TextUtils.isEmpty(this.b)) {
            SharedPreferences d = h.d(this.a, "common_nc");
            if (!d.getAll().keySet().contains(this.b)) {
                h.a(d, this.b, this.c);
            }
        }
        super.run();
    }
}
